#include "mainwindow.h"


MainWidget::MainWidget(QWidget *parent)
    : QWidget(parent)
{
    initUI();
    initSlots();
}

MainWidget::~MainWidget()
{
}


void MainWidget::initUI()
{
    resize(900, 600);
    setWindowTitle("Metadata Generator");
    hLayout = new QHBoxLayout(this);
    navBar = new QListWidget;
    navBar->setCurrentRow(0);

    stacks = new QStackedWidget;
    rawData = new OriginalForm(this);
    stacks->addWidget(rawData);
    setLists();

    hLayout->addWidget(navBar);
    hLayout->addWidget(stacks);
    hLayout->setStretchFactor(navBar, 1);
    hLayout->setStretchFactor(stacks, 5);
    setLayout(hLayout);
}

void MainWidget::setLists()
{
    QListWidgetItem *rawDataItem = new QListWidgetItem(navBar);
    rawDataItem->setText("Original Data");
    rawDataItem->setTextAlignment(Qt::AlignHCenter);
    rawDataItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);

}


void MainWidget::initSlots(){}
